﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace aspProject.Dmain.Domain
{
    public class FieldConfig
    {
        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public string Name { get; set; }
        public virtual ICollection<Component> Components { get; set; }
        public virtual LabelType LabelType { get; set; }

        public void AddComponent(Component component)
        {
            this.Components.Add(component);
        }
    }
}
